{% extends 'base.html' %}

{% block content%}
    <div class="grid_12">
    <h4 style="color:green;">{{object.title}} </h4>
    <p> {{ object.body|safe}}</p>
    <table style="width:700px; border:1px solid black;"><tr><td style="text-align:left; padding-left:10px;"><span>Категория:&nbsp;<a href="{% url news_list %}{{ object.category.slug }}">{{ object.category }}</a>
        {% if request.user in item.category.operator.all or request.user.is_superuser %}
        |&nbsp;<a href="/news/update/{{ object.id }}">Редактировать новость</a></span>{% endif %} </td><td><strong style="padding-right:10px;">{{ object.date.date }}</strong></td></tr></table>
</div>
{% endblock %}